package com.xjrh.traintravel.collector.netty.command.mvb;

import com.xjrh.traintravel.collector.netty.command.BaseCommand;
import java.io.Serializable;
import java.util.Date;

/**
 * MVB-上报数据
 *
 * @author snps
 * @create 2022-02-07 15:03
 * @describe
 **/
public class MvbData extends BaseCommand implements Serializable {

    private static final long serialVersionUID = 1078835733406905743L;


    /**
     * 公用数据
     */
    private String commonData;

    /**
     * 公用数据-长度
     */
    private int commonDataLength;

    /**
     * 公用数据-内容
     */
    private String commonDataContent;

    /**
     * 专用数据1
     */
    private String selfData1;

    /**
     * 专用数据1-长度
     */
    private int selfData1Length;

    /**
     * 专用数据1-内容
     */
    private String selfData1Content;

    /**
     * 专用数据2
     */
    private String selfData2;

    /**
     * 专用数据2-长度
     */
    private int selfData2Length;

    /**
     * 专用数据2-内容
     */
    private String selfData2Content;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 原始数据
     */
    private String originalData;


    /*****************************************
     * Getter and Setter
     */
    public String getCommonData() {
        return commonData;
    }

    public void setCommonData(String commonData) {
        this.commonData = commonData;
    }

    public int getCommonDataLength() {
        return commonDataLength;
    }

    public void setCommonDataLength(int commonDataLength) {
        this.commonDataLength = commonDataLength;
    }

    public String getCommonDataContent() {
        return commonDataContent;
    }

    public void setCommonDataContent(String commonDataContent) {
        this.commonDataContent = commonDataContent;
    }

    public String getSelfData1() {
        return selfData1;
    }

    public void setSelfData1(String selfData1) {
        this.selfData1 = selfData1;
    }

    public int getSelfData1Length() {
        return selfData1Length;
    }

    public void setSelfData1Length(int selfData1Length) {
        this.selfData1Length = selfData1Length;
    }

    public String getSelfData1Content() {
        return selfData1Content;
    }

    public void setSelfData1Content(String selfData1Content) {
        this.selfData1Content = selfData1Content;
    }

    public String getSelfData2() {
        return selfData2;
    }

    public void setSelfData2(String selfData2) {
        this.selfData2 = selfData2;
    }

    public int getSelfData2Length() {
        return selfData2Length;
    }

    public void setSelfData2Length(int selfData2Length) {
        this.selfData2Length = selfData2Length;
    }

    public String getSelfData2Content() {
        return selfData2Content;
    }

    public void setSelfData2Content(String selfData2Content) {
        this.selfData2Content = selfData2Content;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getOriginalData() {
        return originalData;
    }

    public void setOriginalData(String originalData) {
        this.originalData = originalData;
    }


    @Override
    public String toString() {
        return "MvbData{" +
                "commonData='" + commonData + '\'' +
                ", commonDataLength=" + commonDataLength +
                ", commonDataContent='" + commonDataContent + '\'' +
                ", selfData1='" + selfData1 + '\'' +
                ", selfData1Length=" + selfData1Length +
                ", selfData1Content='" + selfData1Content + '\'' +
                ", selfData2='" + selfData2 + '\'' +
                ", selfData2Length=" + selfData2Length +
                ", selfData2Content='" + selfData2Content + '\'' +
                ", createTime=" + createTime +
                ", originalData='" + originalData + '\'' +
                '}';
    }

}